// 、、organization_comment
exports.organization_comment = function(req,res) {

    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;

    //最终结果
    var resultData = {};

    var skip = restfulParams.skip == undefined ? 0 : restfulParams.skip;

    var limit = restfulParams.limit == undefined ? config.publicConfig.LIMIT : restfulParams.limit;

    // + "/skip/" + skip + "/limit/" + limit

    //任务流创建
    async.waterfall([
            //机构评论回复带评论者与回复者信息
            function(cb){

                R.SEND_HTTP(
                    req,
                    {
                        url    : CORE_APIConfig.coreAPI.search_art_organization_comment_info+"/oc_oid/" + restfulParams.o_id+"/count/1",
                        method : 'POST'
                    },
                    function (err, data) {
                        //判断是否有错误信息
                        if (err) {
                            return cb(err, data);
                        }

                        resultData.commentCount            = data.count;
                        cb();
                    }
                );

            },
            //机构评论回复带评论者与回复者信息
            function(cb){

                R.SEND_HTTP(
                    req,
                    {
                        url    : CORE_APIConfig.coreAPI.search_art_organization_comment_info+"/oc_oid/" + restfulParams.o_id+ "/skip/" + skip + "/limit/" + limit,
                        method : 'POST'
                    },
                    function (err, data) {
                        //判断是否有错误信息
                        if (err) {
                            return cb(err, data);
                        }

                        resultData.organizationCommentData = data.data;
                        cb();
                    }
                );

            }
        ],function(err, result){

            RES.response(res,true,resultData);

        }
    );

};